cmake_minimum_required(VERSION 3.5.1)

add_library( traffic_rules      backside_vehicle.cc
                                change_lane.cc
                                crosswalk.cc
                                destination.cc
                                keep_clear.cc
                                object_priority.cc
                                reference_line_end.cc
                                rerouting.cc
                                stop_sign.cc
                                traffic_light.cc)
target_link_libraries( traffic_rules
                                        common::factory
                                        common::map_util
                                        perception_proto
                                        planning::frame
                                        planning::planning_context
                                        planning::planning_gflags
                                        planning::reference_line_info
                                        planning_common_lib
                                        planning_proto
                                        )




add_library( traffic_decider  traffic_decider.cc )
target_link_libraries( traffic_decider  
                                        common::status
                                        common::vehicle_state_provider
                                        planning::frame
                                        planning::reference_line_info
                                        planning_proto
                                        task
                                        traffic_rules
                        )


install(TARGETS traffic_rules
                traffic_decider
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )